package com.theyeasy.dvmini.model;

import java.math.BigDecimal;
import java.util.Date;

public class Activity {
    
    private Date beginTime;//活动开始时间
    private Date endTime;//活动结束时间
    private int status;//活动状态 
    private BigDecimal planMny;//发放红包预算
    private BigDecimal currentMny;
    private Integer minMny;//红包随机金额 最低是 100 单位为分
    private Integer maxMny; // 
    private Integer lotteryPercent;//红包中奖概率 如 70% 就是70
    private String city;//红包活动范围
    private String keyword;//触发抽奖关键字(多个关键字用|隔开)
    private String unLotteryReply;//粉丝未中奖回复文字
    private String finishReply;//活动结束后回复文字
    private String lotteryTitle;//中奖后推送的红包链接标题
    private String lotterySubTitle;//中奖后推送的红包链接副标题
    private Integer turn;//活动轮次
   public Activity(Date beginTime,Date endTime,Integer status,
           BigDecimal planMny,Integer minMny,Integer maxMny,Integer lotteryPercent
           ,String city,String keyword,String unLotteryReply,String finishReply
           ,String lotteryTitle,String lotterySubTitle,Integer turn){
       this.beginTime=beginTime;
       this.endTime=endTime;
       this.status=status;
       this.planMny=planMny;
       this.maxMny=maxMny;
       this.minMny=minMny;
       this.lotteryPercent=lotteryPercent;
       this.city=city;
       this.keyword=keyword;
       this.unLotteryReply=unLotteryReply;
       this.finishReply=finishReply;
       this.lotteryTitle=lotteryTitle;
       this.lotterySubTitle=lotterySubTitle;     
       this.turn=turn;
   }
    
    public Integer getTurn() {
        return turn;
    }

    
    public void setTurn(Integer turn) {
        this.turn = turn;
    }

    public Date getBeginTime() {
        return beginTime;
    }
    
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }
    
    public BigDecimal getCurrentMny() {
    	if(currentMny ==null) return new BigDecimal(0);
		return currentMny;
	}

	public void setCurrentMny(BigDecimal currentMny) {
		this.currentMny = currentMny;
	}

	public Date getEndTime() {
        return endTime;
    }
    
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public BigDecimal getPlanMny() {
        return planMny;
    }
    
    public void setPlanMny(BigDecimal planMny) {
        this.planMny = planMny;
    }
    
    public Integer getMinMny() {
        return minMny;
    }
    
    public void setMinMny(Integer minMny) {
        this.minMny = minMny;
    }
    
    public Integer getMaxMny() {
        return maxMny;
    }
    
    public void setMaxMny(Integer maxMny) {
        this.maxMny = maxMny;
    }
    
    public Integer getLotteryPercent() {
        return lotteryPercent;
    }
    
    public void setLotteryPercent(Integer lotteryPercent) {
        this.lotteryPercent = lotteryPercent;
    }
    
    public String getCity() {
        return city;
    }
    
    public void setCity(String city) {
        this.city = city;
    }
    
    public String getKeyword() {
        return keyword;
    }
    
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
    
    public String getUnLotteryReply() {
        return unLotteryReply;
    }
    
    public void setUnLotteryReply(String unLotteryReply) {
        this.unLotteryReply = unLotteryReply;
    }
    
    public String getFinishReply() {
        return finishReply;
    }
    
    public void setFinishReply(String finishReply) {
        this.finishReply = finishReply;
    }
    
    public String getLotteryTitle() {
        return lotteryTitle;
    }
    
    public void setLotteryTitle(String lotteryTitle) {
        this.lotteryTitle = lotteryTitle;
    }
    
    public String getLotterySubTitle() {
        return lotterySubTitle;
    }
    
    public void setLotterySubTitle(String lotterySubTitle) {
        this.lotterySubTitle = lotterySubTitle;
    }
    
}